package gwtmodule1.client.gui.shop;

import gwtmodule1.client.gui.utils.FormTable;
import gwtmodule1.client.gui.utils.FrameClient;
import gwtmodule1.client.gui.utils.Title;

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class PageSearch extends VerticalPanel implements FrameClient {

	private Widget createTable() {
		HorizontalPanel pr = new HorizontalPanel();
		pr.add(new HTML("From:"));
		pr.add(new TextBox());
		pr.add(new HTML("To:"));
		pr.add(new TextBox());

		FormTable table = new FormTable();
		table.addInput("Search Text", new TextBox());
		table.addInput("Type", new ListBox());
		table.addInput("Price Range", pr);
		table.addInput("Size", new TextBox());
		table.addInput("Brand", new TextBox());
		table.addButton("Search", null);
		return table;
	}

	public PageSearch() {
		add(new Title("Product Search"));
		add(createTable());
	}

	public void onShow(Object param) {
	}

}
